export function getBase64(img: Blob): Promise<any> {
  return new Promise((resolve, reject) => {
    const reader = new FileReader();
    reader.addEventListener('load', (): void => resolve(reader.result));
    reader.addEventListener('error', (error): void => reject(error));
    reader.readAsDataURL(img);
  });
}
